package com.ericsson.web.core;

import java.util.Map;

public interface IDatabase {
	public void saveCookies(Map cookies);
	public Map<Integer,  String> getAllStolenCookies();
	public void cleanCookie();
	public int loginAuth(String username, String password);
	public int registerUser(String username, String  password, String description);
	public String getUserNameById(int  id);
	public String getDescriptionById(int id);
	public Map<Integer, String> getAllUsersExceptMe(int id);
	public  void  changeDescription(int id, String description);
	public void saveSession(SessionData sd);
	public String validate(String userName, String sid, String token);
	public int getUserIdByUserName(String userName);
	public void removeSession(int userId, String sid);
	public Map<Integer, String> searchFiendByUserName(String search);
}
